/**
 * @format
 */

import {AppRegistry} from 'react-native';
import App from './src/App';
import {name as appName} from './app.json';

console.warn('关闭全部黄色警告');
console.disableYellowBox = true;

// 全局错误捕捉与处理
// https://blog.csdn.net/teng_ontheway/article/details/52088317
// https://juejin.im/post/5b9c9aaff265da0a951ec8ba
require('ErrorUtils').setGlobalHandler(function (err) {
    alert(err);
});
// setTimeout(()=>{
//     throw new Error('test error');
// }, 3000);

AppRegistry.registerComponent(appName, () => App);
